package com.person.jiaiplan.assembler;

import com.person.jiaiplan.pojo.dto.ClockLogsResDTO;
import com.person.jiaiplan.pojo.entity.Clocklogs;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ClockLogsAssembler {

    ClockLogsAssembler INSTANCE = Mappers.getMapper(ClockLogsAssembler.class);


    List<ClockLogsResDTO> toClockLogsResDTOList(List<Clocklogs> list);

    @Mapping(target = "clockTime", dateFormat = "yyyy-MM-dd")
    ClockLogsResDTO clocklogsToClockLogsResDTO(Clocklogs clocklogs);
}
